<div class="tab-content" ng-controller="stopScheduleController"  >
	<div class="tab-pane active">
		<div class="portlet">
			<div class="portlet-title">
				<div class="title-blank">
                	<span ng-repeat="media in stopMedias" style="margin-right: 15px;">
                		<input type="radio" name="stopMediaTypeRadio" ng-checked="media.mediaId == scheduleQuery.mediaType" style="position: static;margin: 0px;" ng-click="mediaTypeChange(media.mediaId)">
                		{{media.mediaName}}
                	</span>
                </div>
				<a href="javascript:void(0);" class="title-operation search-expand">筛选</a>
				<div class="title-search-box">
					<input type="text" placeholder="请输入资源编号" class="search-field" ng-model="scheduleQuery.resourceCode"
						style="width: 180px;" maxlength="100">
					<a class="fa fa-search" ng-click="query(currentMonth)"></a>
				</div>
			</div>
			<div class="portlet-search-body" style="display: none;">
				<form class="form-horizontal" role="form" style="margin: 2px;">
						 <div class="form-body">
                        	<div class="row" style="margin-bottom: 5px;">
                        		<div class="col-md-2">
                                    <div class="input-icon">
                                     	<i class="fa fa-lightbulb-o"></i>
										<input class="form-control" placeholder="站点名称" ng-model="scheduleQuery.stopName">
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <div class="input-icon">
                                       	<i class="fa fa-lightbulb-o"></i>
										<input class="form-control" placeholder="街道" ng-model="scheduleQuery.roadName">
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <div class="input-icon">
                                       	<i class="fa fa-lightbulb-o"></i>
										<select class="form-control" style="width: 200px;color: #b3b3b3;" ng-model="scheduleQuery.county" ng-options="opt.value as opt.name for opt in options.AREA_COUNTY">
                                            <option value="" >行政区划</option>
										</select>
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <div class="input-icon">
                                       	<button class="btn btn-primary" ng-click="query(currentMonth)"><i class="fa fa-search"></i> 搜索</button>
                                    </div>
                                </div>
                        	</div>
       					</div>
                </form>
			</div>
			<div class="portlet-body">
				<div class='schedule-meta'>
					<div class='schedule-total-price'>时间：{{currentMonth}}</div>
					<div class='schedule-legend'>
						<ul>
							<li class='status-item status-free' title='资源空闲'>空闲</li>
							<li class='status-item status-workOff' title='资源售出'>售出</li>
							<li class='status-item status-published' title='资源上刊'>已上刊</li>
							<li class='status-item status-locked' title='资源锁定'>竞价</li>
			
						</ul>
					</div>
				</div>
				<div class='schedule-list-content ui-ctrl ui-panel'>
					<div class='schedule-list-panel'>
						<div class='date-field'>
							<a ng-click="query(currentMonth,-1,1)"
								class="prev-year ui-ctrl ui-button active">{{lastYear}}</a><a
								ng-click="query(currentMonth,1,1)"
								class="next-year ui-ctrl ui-button active">{{nextYear}}</a>
							<div class="col-md-4">
								<select class="form-control" ng-model="monthSelect"
									style="margin: -2px -2px 0px 72px; font-size: 12px; width: 100px; height: 27px; color: #565353; border: 0px; background-color: #eee"
									ng-change="monthChange(monthSelect)"
									ng-options="opt for opt in months">
								</select>
							</div>
						</div>
						<div class="ui-table-head">
							<div class="ui-ctrl ui-panel">
								<table width="100%">
									<tbody>
										<tr>
											<th class="ui-table-cell"><div class='ui-table-hcell-text'>资源编号</div></th>
											<th class="ui-table-cell"><div class='ui-table-hcell-text'>站点名称</div></th>
											<th class="ui-table-cell"><div class='ui-table-hcell-text'>街道</div></th>
											<th class="ui-table-cell"><div class='ui-table-hcell-text'>区域</div></th>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="ui-table-body ">
							<div class="ui-table-row" ng-repeat="data in dataArray">
								<table width="100%" class="table-striped">
									<tbody>
										<tr class="odd" style="color:{{data.status == '0' ? 'lightgray':''}}">
											<td class="ui-table-cell">
												<div class='ui-table-cell-text'>
													<a ng-click="resourceInfoModal.open(data);">{{data.resourceCode}}</a>
												</div>
											</td>
											<td class="ui-table-cell">
												<div class='ui-table-cell-text'>
													<a ng-click="stopMediaInfoModal.open(data.stopId);">{{data.stopName}}</a>
												</div>
											</td>
											<td class="ui-table-cell"><div class='ui-table-cell-text'>{{data.roadName}}</div></td>
											<td class="ui-table-cell"><div class='ui-table-cell-text'>{{data.stopCounty | code:'AREA_COUNTY'}}</div></td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
					<div class='schedule-graphic-panel'>
						<div class='date-field'>
							<a ng-click="query(currentMonth,-1,2)"
								class="prev-month ui-ctrl ui-button active">上一月</a><a
								ng-click="query(currentMonth,1,2)"
								class="next-month ui-ctrl ui-button active">下一月</a>
							<div style="margin: 5px;" ng-model="scheduleQuery.currentMonth">
								<font>{{currentMonth}}</font>
							</div>
						</div>
						<div class='ui-ctrl ui-scheduletable'>
							<div>
								<div class="ui-table-head ">
									<table width="100%">
										<tbody>
											<tr>
												<th class="ui-scheduletable-head-item" ng-repeat="day in days"><div>{{day.dayOfWeek}}</div></th>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							<div class="ui-table-head " style="height: 27px">
								<table width="100%">
									<tbody>
										<tr>
											<th class="ui-scheduletable-head-item" ng-repeat="day in days"><div>{{day.dayOfMonth}}</div></th>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="ui-table-body">
								<div class="ui-ctrl ui-panel">
									<div ng-repeat="data in dataArray">
										<div class="ui-table-row-no-bottom" ng-if="!$last">
											<table width="100%">
												<tbody>
													<tr>
														<td paiqi="0" dw-id={{data.resourceId}}
															date={{schedule.date}}
															ng-repeat="schedule in data.scheduleArray"
															class="ui-scheduletable-item {{schedule.status}}"
															ng-click="scheduleInfoTip.open(data,schedule);"></td>
													</tr>
												</tbody>
											</table>
										</div>
										<div class="ui-table-row" ng-if="$last">
											<table width="100%">
												<tbody>
													<tr>
														<td paiqi="0" dw-id={{data.resourceId}}
															date={{schedule.date}}
															ng-repeat="schedule in data.scheduleArray"
															class="ui-scheduletable-item {{schedule.status}}"
															ng-click="scheduleInfoTip.open(data,schedule);"></td>
													</tr>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div id="stop_page_bar" style="position: relative; margin-top: 5px; margin-bottom: 25px;"></div>
			</div>
		</div>
	</div>
	
	<div ed-modal="stopMediaInfoModal" data-options="title:'站点信息',icon:'fa-bus',static:true,width:'900px',defaultButton:false">
		<div style="padding: 5px;width: 100%;overflow: auto;height:500px;">
				<div class="portlet">
					<div class="portlet-body">
						<tabset>
							<tab heading="站点明细">
					            <div class="portlet">
					            	<div class="portlet-body">
					            		<form action="#" class="form-horizontal form-row-seperated w5c-form"">
					                        <div class="form-body">
					                        	<div class="row">
					                        		<div class="col-md-6">
						                        		<div class="form-group">
						                                	<label class="col-md-4 control-label">站点名称：</label>
							                                <div class="col-md-8">
							                                	<p class='form-control-static'>{{stopMediaInfoModal.mediaStop.stopName}}</p>
							                                </div>
						                            	</div>
					                        		</div>
					                        		<div class="col-md-6">
					                        			<div class="form-group">
					                        				<label class="col-md-4 control-label">行政区划：</label>
							                                <div class="col-md-8">
							                                	<p class='form-control-static'>{{stopMediaInfoModal.mediaStop.county | code:'AREA_COUNTY'}}</p>
							                                </div>
					                                		
					                            		</div>
					                        		</div>
					                        	</div>
					                        	<div class="row">
					                        		<div class="col-md-6">
						                        		<div class="form-group">
						                                	<label class="col-md-4 control-label">所在街道：</label>
							                                <div class="col-md-8">
							                                	<p class='form-control-static'>{{stopMediaInfoModal.mediaStop.roadName}}</p>
							                                </div>
						                            	</div>
					                        		</div>
					                        		<div class="col-md-6">
					                        			<div class="form-group">
					                                		<label class="col-md-4 control-label"><span class="required">*</span>行向：</label>
							                                <div class="col-md-8">
							                                	<p class='form-control-static'>{{stopMediaInfoModal.mediaStop.direction}}</p>
							                                </div>
					                            		</div>
					                        		</div>
					                        	</div>
					                        	
					                        	<div class="row">
					                        		<div class="col-md-12">
						                        		<div class="form-group">
						                                	<label class="col-md-2 control-label">经纬度： </label>
							                                <div class="col-md-9">
							                                	<p class="form-control-static">
							                                		( {{stopMediaInfoModal.mediaStop.longitude}},{{stopMediaInfoModal.mediaStop.latitude}} )
							                                	</p>
							                                </div>
						                            	</div>
					                        		</div>
					                        	</div>
					                        	<div class="row">
					                        		<div class="col-md-12">
						                        		<div class="form-group">
						                                	<label class="col-md-2 control-label">环境标签： </label>
							                                <div class="col-md-9">
							                                	<p class='form-control-static'>
							                                		<span ng-repeat="mark in stopMediaInfoModal.mediaStop.marks" style="background-color: gray;padding: 2px 5px;color: white;margin-right: 10px;">{{mark.markName}}</span>
							                                	</p>
							                                </div>
						                            	</div>
					                        		</div>
					                        	</div>
					                        	<div class="row">
					                        		<div class="col-md-6">
						                        		<div class="form-group">
						                                	<label class="col-md-4 control-label">照片：</label>
							                                <div class="col-md-8">
								                                <img id="stopMediaInfoModalImgViewArea" alt="图片无法显示" src="" style="width: 200px;height: 200px;">
							                                </div>
						                            	</div>
					                        		</div>
					                        		
					                        	</div>
					                        </div>
					                    </form>
					            	</div>
					            </div>
					         </tab>
					         <tab heading="定位">
					            <div class="portlet" style="margin-bottom: 0px;">
					            	<div class="portlet-body" style="position: relative;">
										<div id="stopMediaInfoModalMapDiv" style="overflow:hidden;height: 410px;width: 880px;">
                    						
        								</div>
									</div>
					            </div>
					        </tab>
					    </tabset>
					 </div>
				</div>
		</div>
	</div>


	

	
</div>



